package com.cgbl.cg.ui.mine

import android.os.Bundle
import android.widget.ImageView
import android.widget.TextView
import androidx.recyclerview.widget.LinearLayoutManager
import com.alibaba.android.arouter.facade.annotation.Route
import com.cgbl.cg.BR
import com.cgbl.cg.R
import com.cgbl.cg.adapter.FollowFansAdapter
import com.cgbl.cg.adapter.HomeFollowAdapter
import com.cgbl.cg.databinding.AppActivityFollowFansBinding
import com.cgbl.cg.vm.mine.FollowFansViewModel
import com.robot.base.base.activity.GLBaseActivity
import com.robot.base.configs.AppConstants

@Route(path = AppConstants.Router.Mine.A_MINE_FOLLOW_FANS)
class FollowFansActivity : GLBaseActivity<AppActivityFollowFansBinding, FollowFansViewModel>() {

    private lateinit var followAdapter: FollowFansAdapter

    override fun initComponents() {
        initTiterBar()
        initView()
    }

    override fun initViewObservable() {
    }


    private fun initTiterBar() {
        val backView = findViewById<ImageView>(R.id.iv_back)
        backView.setOnClickListener { finish() }
    }

    private fun initView() {
        followAdapter = FollowFansAdapter()
        binding.recyclerView.apply {
            layoutManager = LinearLayoutManager(this@FollowFansActivity)
            adapter = followAdapter
        }
        followAdapter.setNewInstance(mutableListOf("", "", ""))
    }

    override fun initContentView(savedInstanceState: Bundle?): Int =
        R.layout.app_activity_follow_fans

    override fun initVariableId(): Int = BR.viewModel
}